using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Fields
{
    /// <summary>
    /// <para>Add Global IDs</para>
    /// <para>Adds global IDs to a list of geodatabase feature classes, tables, and feature datasets.</para>
    /// <para>将全局 ID 添加到地理数据库要素类、表和要素数据集的列表中。</para>
    /// </summary>    
    [DisplayName("Add Global IDs")]
    public class AddGlobalIDs : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddGlobalIDs()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_datasets">
        /// <para>Input Datasets</para>
        /// <para>A list of geodatabase classes, tables, and feature datasets to which global IDs will be added.</para>
        /// <para>将添加全局 ID 的地理数据库类、表和要素数据集的列表。</para>
        /// </param>
        public AddGlobalIDs(List<object> _in_datasets)
        {
            this._in_datasets = _in_datasets;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Add Global IDs";

        public override string CallName => "management.AddGlobalIDs";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_datasets, _out_datasets];

        /// <summary>
        /// <para>Input Datasets</para>
        /// <para>A list of geodatabase classes, tables, and feature datasets to which global IDs will be added.</para>
        /// <para>将添加全局 ID 的地理数据库类、表和要素数据集的列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Datasets")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_datasets { get; set; }


        /// <summary>
        /// <para>Updated Datasets</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Datasets")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _out_datasets { get; set; }


        public AddGlobalIDs SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}